import cv2
from pydantic import BaseModel, Field


class ThresholdParams(BaseModel):
    minval: int = Field(default=0)
    maxval: int = Field(default=255)
    step: int = Field(default=1)
    thresh: int = Field(default=127)
    cv2_type: str = Field(default='cv2.THRESH_OTSU')
